Component({
    data: {
        goods: {
            id: 1,
            titlepic: "https://pic.hongsizg.com/minipro/mall/goods.png",
            title: "91抵100元代金券",
            desc: "婚纱摄影抵用券",
            price: 90,
            origin_price: 100,
            sold: 0
        },
        package: [
            {
                category: {
                    title: "有效期",
                },
                items: [
                    "2024.4.1至2024.9.21 23.59",
                ]
            },
            {
                category: {
                    title: "使用时间",
                },
                items: [
                    "营业时间内均可使用"
                ]
            },
            {
                category: {
                    title: "使用范围",
                },
                items: [
                    "营业时间内均可使用"
                ]
            },

        ]
    },
    methods: {
        toPage(e: any) {
            let id = e.currentTarget.dataset.id;
            wx.navigateTo({
                url: "/pages/mall/coupon/submit?id=" + id
            });
        }
    }
})
